Skip to content

gcsweb-test-platform-results: scoped bearer reads for nvidia-ci - #85720

Merged
openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
jmguzik:gcsweb-nvidia
Sep 23, 2026
Merged

openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
jmguzik:gcsweb-nvidia

Conversation

@jmguzik

@jmguzik jmguzik commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

This oauth-proxy sets neither -openshift-sar nor -openshift-delegate-urls, and the OpenShift provider only honours Authorization: Bearer when delegate-urls is set, so rh-ecosystem-edge/nvidia-ci's dashboards get the login page instead of the four small artifacts they read per build. Add a delegate-urls entry gated on a review against an empty capability configmap, bound to the ServiceAccount from #85691 and to the team's group. It points at gs://test-platform-results/curated/, a filtered copy of just those artifacts, because delegate-urls scopes by prefix only and the raw pr-logs prefix would expose every build log under it; no -openshift-sar, which would gate the browser flow too and lock out today's interactive users.

Summary by CodeRabbit

  • Adds a scoped access check for rh-ecosystem-edge/nvidia-ci build artifacts in OpenShift CI.
  • Allows gcsweb bearer-authorized reads under gs://test-platform-results/curated/pr-logs/pull/rh-ecosystem-edge_nvidia-ci/ when the requester can get the nvidia-ci-artifact-access ConfigMap in namespace ci.
  • Grants that permission to the rh-ecosystem-nvidia group and its periodic-job-bot ServiceAccount. The ConfigMap acts as an authorization resource; it contains no artifact data.

This oauth-proxy sets neither -openshift-sar nor -openshift-delegate-urls,
and the OpenShift provider only honours `Authorization: Bearer` when
delegate-urls is set, so rh-ecosystem-edge/nvidia-ci's dashboards get the
login page instead of the four small artifacts they read per build. Add a
delegate-urls entry gated on a review against an empty capability configmap,
bound to the ServiceAccount from openshift#85691 and to the team's
group. It points at gs://test-platform-results/curated/, a filtered copy of
just those artifacts, because delegate-urls scopes by prefix only and the raw
pr-logs prefix would expose every build log under it; no -openshift-sar,
which would gate the browser flow too and lock out today's interactive users.

Signed-off-by: Jakub Guzik <jguzik@redhat.com>
@openshift-merge-bot openshift-merge-bot Bot added the rehearsals-ack Signifies that rehearsal jobs have been acknowledged label Sep 23, 2026
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@jmguzik: no rehearsable tests are affected by this change

Note: If this PR includes changes to step registry files (ci-operator/step-registry/) and you expected jobs to be found, try rebasing your PR onto the base branch. This helps pj-rehearse accurately detect changes when the base branch has moved forward.

@coderabbitai

coderabbitai Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: db95ebb8-762a-4329-88e5-77c3e30066a9

📥 Commits

Reviewing files that changed from the base of the PR and between cdc9f33 and 10de639.

📒 Files selected for processing (2)
  • clusters/app.ci/prow/03_deployment/admin_gcsweb-test-platform-results_nvidia-ci_rbac.yaml
  • clusters/app.ci/prow/03_deployment/gcsweb-test-platform-results.yaml

Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review.


Walkthrough

Adds ConfigMap-based access authorization for a curated NVIDIA CI artifact path. A Role and RoleBinding grant access to the ConfigMap, and the OAuth proxy delegates requests for that path through it.

Changes

NVIDIA CI artifact access

Layer / File(s) Summary
Artifact access authorization
clusters/app.ci/prow/03_deployment/admin_gcsweb-test-platform-results_nvidia-ci_rbac.yaml, clusters/app.ci/prow/03_deployment/gcsweb-test-platform-results.yaml
Adds the nvidia-ci-artifact-access ConfigMap, a Role restricted to get on that ConfigMap, and a RoleBinding for the specified ServiceAccount and group. Adds an OAuth proxy delegation rule for the curated NVIDIA CI GCS path using the ConfigMap.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to 10de6

This change lets the nvidia-ci team group and one bot ServiceAccount read only the curated nvidia-ci artifact path using bearer tokens. The existing browser login flow is unchanged. The proxy's service account already has the permissions it needs to validate these tokens. No merge-blocking risk was identified.

🚥 Pre-merge checks | ✅ 15
✅ Passed checks (15 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: scoped bearer authorization for nvidia-ci access to gcsweb test-platform results.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed The pull request changes only two Kubernetes YAML manifests. The diff adds RBAC resources and an oauth-proxy argument; it adds no Ginkgo tests or test-title calls such as It(), Describe(), Context(), …
Test Structure And Quality ✅ Passed The pull request changes only two Kubernetes YAML manifests. The authoritative diff contains no Ginkgo test code, It blocks, setup/cleanup hooks, waits, or assertions. Therefore, this test-quality che…
Microshift Test Compatibility ✅ Passed The pull request changes only two YAML deployment manifests. The diff adds RBAC resources and an oauth-proxy delegate-URL argument; it adds no Ginkgo tests or other test cases. Therefore, the MicroShi…
Single Node Openshift (Sno) Test Compatibility ✅ Passed The pull request changes only two Kubernetes YAML deployment/RBAC files. The authoritative diff adds an OAuth proxy delegate URL and ConfigMap, Role, and RoleBinding resources. It adds no Ginkgo e2e t…
Topology-Aware Scheduling Compatibility ✅ Passed The pull request adds a ConfigMap, Role, and RoleBinding, and adds one OAuth proxy argument. It does not introduce anti-affinity, topology spread constraints, node selectors or affinity, tolerations, …
Ote Binary Stdout Contract ✅ Passed PASS. The pull request changes only two Kubernetes YAML manifests. It adds RBAC resources and an oauth-proxy -openshift-delegate-urls argument. It does not change an OpenShift Tests Extension binary…
Ipv6 And Disconnected Network Test Compatibility ✅ Passed The pull request changes only two YAML deployment/RBAC files. The diff adds no Ginkgo tests or test code, IPv4 assumptions, or external connectivity checks. This custom check is not applicable.
No-Weak-Crypto ✅ Passed The pull request changes only two YAML manifests. The additions define RBAC resources and an oauth-proxy delegate URL. No MD5, SHA1, DES, 3DES, RC4, Blowfish, ECB, custom cryptography, or secret/token…
Container-Privileges ✅ Passed The pull request adds a ConfigMap, Role, RoleBinding, and one oauth-proxy argument. The added lines do not set privileged, hostPID, hostNetwork, hostIPC, SYS_ADMIN, allowPrivilegeEscalation, or root e…
No-Sensitive-Data-In-Logs ✅ Passed The PR adds no logging statements or log configuration. Its added lines create an empty ConfigMap, scoped RBAC, and an OAuth proxy delegate URL. The delegated path contains no password, token, API key…
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 23, 2026
@openshift-ci

openshift-ci Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

@jmguzik: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Sep 23, 2026
@openshift-ci

openshift-ci Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jmguzik, Prucek

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot
openshift-merge-bot Bot merged commit d74a322 into openshift:main Sep 23, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. rehearsals-ack Signifies that rehearsal jobs have been acknowledged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants